using System;
using System.Collections.Generic;
using System.Linq;
using Granite.Eventing;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.ComponentModel;

namespace Granite.Commons.Tests.Eventing
{
    [TestClass]
    public class ItemPropertyChangedListenerTests
    {
        [TestMethod]
        public void ItemPropertyChangedListener_Test1()
        {
            try
            {
				var listener = new Listener<RelayedEventArgs<PropertyChangedEventArgs>>(null);
                Assert.Fail("Expected an ArgumentNullException");
            }
            catch (ArgumentNullException ex)
            {
                Assert.AreEqual("eventHandler", ex.ParamName, "Parameter name is wrong");
            }
        }
    }
}
